//
//  AspectsManager.m
//  Study
//
//  Created by 振兴 刘 on 2019/8/17.
//  Copyright © 2019 振兴 刘. All rights reserved.
//

#import "AspectsManager.h"
#import <Aspects/Aspects.h>
#import <objc/runtime.h>
#import "TestViewController.h"

@implementation AspectsManager

+ (void)load {
    
    Class catMetal = objc_getClass(NSStringFromClass(TestViewController.class).UTF8String);
    [catMetal aspect_hookSelector:@selector(initData) withOptions:AspectPositionAfter usingBlock:^(){
        NSLog(@"Aspects block end");
    } error:nil];
}

@end
